package leetcode.L1000;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class EX830 {

    public static void main(String[] args) {
        String s = "abcdddeeeeaabbbcd";


        List <List<Integer>> res = new ArrayList<List<Integer>>();

        int second = 0;
        for(int i = 0 ;i<s.length()-1;){
            second = i+1;
            while(second<s.length()&&s.charAt(i)==s.charAt(second)){
                second++;
            }
            if(second-i>=3){
                //res.add();
            }
            i = second;
        }
        System.out.println(res);
    }
}
